package com.ndp.fb.scheduler.job.business;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ndp.fb.constant.ConfigConst;
import com.ndp.fb.mq.api.service.schedulerservice.AdResourceSchedulerService;
import com.ndp.fb.scheduler.annotation.CronScheduled;

/**
 * Created by Mikey.zhaopeng on 2015/3/10 14:16.
 * Email mikey.zhao@ndpmedia.com
 * 业务数据同步 job
 */
@Component
public class PerfectBusinessJob {
    private final Logger logger = LoggerFactory.getLogger(getClass());



    @Reference
    private AdResourceSchedulerService AdResourceSchedulerService;
    @CronScheduled(cronkey = ConfigConst.SCHEDULE_BUSINESS_ADIMAGE_HASH_PERFECT_CRON, enablekey = ConfigConst.SCHEDULE_BUSINESS_ADIMAGE_HASH_PERFECT_ENABLE)
    public void perfectImageHash() {
        logger.info("开始计算本地上传图片的imagehash");
        AdResourceSchedulerService.getImageHash("");
    }
}
